package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "ExamInfo")
public class ExamInfo extends BaseModel {	//考试
	private String name;     //考试名称
	@ManyToOne(cascade = CascadeType.REFRESH)
	private Course course;     //课程id
	private Double totalScore;     //总分
	private Double passScore;     //合格分数
	private  String durationTime;     //时长
	@OneToOne(cascade = CascadeType.REFRESH)
	private TestPaper testPaper;     //试卷id
	@ManyToOne(cascade = CascadeType.REFRESH)
	private User creator;     //创建人
}

